<?php 
	
	session_start();
	require_once 'xhtmlHeader.php';
	?>

<head>
        <title>DirectAdmin Login</title>
        <link rel="SHORTCUT ICON" href="http://1.2.3.4:2222/images/favicon.ico">
        <style>
        *               {font-size:11px;font-family:Verdana,Geneva,Arial,Helvetica,sans-serif;color:#000;}
        html, body      {height:100%;min-height:100%;margin:0;background:#FFF;}
        table           {width:340px;margin:0px;border-style:solid;border-color:#345b80;border-width:0px 1px 1px 1px;}
        table.image     {width:340px;height:60px;margin:0px;padding:0px;border-style:none;background:top no-repeat url("http://1.2.3.4:2222/images/login.png");}
        td.head         {background:#345b80;color:#fff;text-align:center;padding:8px 5px 8px 5px;}
        td.text         {width:100%;background:#eee;text-align:right;padding:5px;}
        td.data         {background:#eee;text-align:left;padding:5px;}
        td.send         {background:#345b80;text-align:right;padding:6px 5px 6px;}
        button          {width:75px;cursor:pointer;text-align:center;}
        input           {height:19px;padding-left:2px;border-style:solid;border-color:#7f9db9;border-width:1px;}
        table.fail      {display:none;background:#fbfbbb;border-color:#b00;border-style:solid;border-width:2px;margin-top:10px;text-align:center;font-weight:bold;}
        td.fail         {padding:10px;vertical-align:middle;}
        </style>
        <script type="text/javascript">
        <!--
        var is_fail = '|FAILEDLOGIN|';
        var my_table;
        function Login_Fail(obj){
                document.form.username.focus();
                if(is_fail != ''){
                        my_table = document.getElementById(obj);
                        my_table.style.display = 'table';
                        setTimeout("my_table.style.display = 'none';", 6000);
                }
        }
        //-->
        </script>
</head>
<body onLoad="Login_Fail('hide');">
        <center><br /><br /><br /><br />
                <table class="image"><tr><td></tr></td></table>
                <table>
                        <tr>
                                <td class="head" colspan=2>Por favor teclee su Nombre de Usuario y su Contrase&ntilde;a</td>
                        </tr>
                        <form action="/CMD_LOGIN" method="POST" name="form">
                        <input type=hidden name=referer value="/" />
                        <tr>
                                <td class="text">Nombre de Usuario:</td>
                                <td class="data"><input type=text name=username size=26 /></td>
                        </tr>
                        <tr>
                                <td class="text">Contrase&ntilde;a:</td>
                                <td class="data"><input type=password name=password size=26 /></td>
                        </tr>
                        <tr>
                                <td class="send" colspan=2><button type=submit>Login</button></td>
                        </tr>
                        </form>
                </table>
                <table class="fail" id="hide">
                        <tr>
                                <td class="fail">Datos incorrectos. Por favor verifique su<br />Nombre de Usuario y su Contrase&ntilde;a</td>
                        </tr>
                </table>
        </center>
</body>
</html>
